<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : viewTopic
    Created on : Jan 8, 2009, 4:03:18 PM
    Author     : starcounter
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <ice:outputStyle href="/resources/forum.css" id="outputStyle3"/>
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <div style="left: 0px; top: 0px; position: absolute">
                    <jsp:directive.include file="MasterPages/Header.jspf"/>
                </div>
                <div style="left: 0px; top: 96px; position: absolute">
                    <jsp:directive.include file="MasterPages/Navigator.jspf"/>
                </div>
                <div style="left: 0px; top: 110px; position: absolute;height: 100%; width: 100%">
                <ice:form id="form3">
                    <ice:panelGroup id="panelGroup1" style="height: 100%; width: 100%">
                        <br/>
                        <h3 align="center">Nội dung thảo luận</h3>
                        <ice:panelGroup id="pg2" style="width: 100%">
                            <ice:dataTable id="repliesTable" value="#{viewTopic.replies}" rows="10" var="item" width="97%">
                                <ice:column id="c1" style="width: 15%">
                                    <f:facet name="header">
                                        <ice:outputText id="o1" value="Tác giả"/>
                                    </f:facet>
                                    <ice:outputText id="outputText1" value="#{item.userName.userName}"/>
                                </ice:column>
                                <ice:column id="c2">
                                    <f:facet name="header">
                                        <ice:outputText id="ot2" value="Nội dung"/>
                                    </f:facet>
                                    <ice:panelGroup id="createPanel" style="width: 100%;background-color: rgb(204 , 204 , 204); border-style:solid; border-width:1">
                                        <ice:outputText id="title" value="#{item.titles} (#{item.created})"/>
                                    </ice:panelGroup>
                                    <br/>
                                    <pre><ice:outputText  id="ot3" value="#{item.content}"/></pre>
                                    <ice:panelGroup id="tool" style="text-align: right">
                                        <ice:outputText id="lastMod" value="sửa lần cuối: #{item.modified}" rendered="#{item.created != item.modified}" style="font-size: smaller"/>
                                        <ice:outputLink id="linkedit" value="editReply.jsp" rendered="#{item.userName.userName == auth.loginName}">
                                            <ice:outputText id="sua" value="Sửa"/>
                                            <f:param name="rid" value="#{item.id}"/>
                                        </ice:outputLink>
                                    </ice:panelGroup>
                                </ice:column>
                            </ice:dataTable>
                            <ice:panelGrid id="lastline" style="width:100%; margin-left:12px" columns="2">
                                <ice:outputLink id="image" value="replyTopic.jsp" rendered="#{auth.visit!=null}">
                                    <ice:graphicImage url="/resources/reply.gif" style="border:none"/>
                                    <f:param name="tid" value="#{viewTopic.topicID}"/>
                                </ice:outputLink>
                                <ice:dataPaginator id="dpView" for="repliesTable" paginator="true" paginatorMaxPages="4" style="margin-right:0px">
                                    <f:facet name="first">
                                        <ice:graphicImage style="border:none;" title="First Page" url="/resources/arrow-first.gif"/>
                                    </f:facet>
                                    <f:facet name="last">
                                        <ice:graphicImage style="border:none;" title="Last Page" url="/resources/arrow-last.gif"/>
                                    </f:facet>
                                    <f:facet name="previous">
                                        <ice:graphicImage style="border:none;" title="Previous Page" url="/resources/arrow-prev.gif"/>
                                    </f:facet>
                                    <f:facet name="next">
                                        <ice:graphicImage style="border:none;" title="Next Page" url="/resources/arrow-next.gif"/>
                                    </f:facet>
                                </ice:dataPaginator>
                            </ice:panelGrid>
                        </ice:panelGroup>
                    </ice:panelGroup>
                </ice:form>
                </div>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
